package com.example.demo.service;

import com.example.demo.mapper.ArticleMapper;
import com.example.demo.po.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleService {

    @Autowired
    private ArticleMapper articleMapper;

    public List<Article> findAllArticle(){
        return articleMapper.findAllArticle();
    }
}
